package lab.poc.erl.otp;

public class GenServerOKStop extends GenServerOK {

	public final StopReason stopType;
	public final String reasonInfo;
	public final Throwable optionalReasonInfo;

	public GenServerOKStop(final Object state, final StopReason stopType,
			final String reasonInfo, final Throwable optionalReasonInfo) {
		super(state);
		this.stopType = stopType;
		this.reasonInfo = reasonInfo;
		this.optionalReasonInfo = optionalReasonInfo;
	}

	@Override
	public final boolean isStop() {
		return this instanceof GenServerOKStop;
	}
}
